<template>
  <div class="auth-container">
    <app-header></app-header>
    <img src="../../assets/logo.png" width="50" alt="#">
    <div class="toggle_btn_group">
      <router-link to="login"><span>登录</span></router-link>  <!--相当于a标签-->
      <router-link to="register"><span>注册</span></router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
import appHeader from '../../components/app-header'

export default {
  name: 'auth',
  data () {
    return {}
  },
  methods: {},
  components: {appHeader}
}
</script>

<style scoped>
  *{
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  .auth-container{
    box-sizing: border-box;
  }
  img{
    margin: 130px auto 50px;
    display: block;
  }
  a{
    text-decoration: none;
    color: black;
  }
  .toggle_btn_group{
    width: 50vw;
    height: 80px;
    margin: auto;
    text-align: center;
    line-height: 40px;
    font-size: 0;
  }
  .toggle_btn_group>a{
    display: inline-block;
    width: 50%;
    font-size: 28px;
    padding-bottom: 10px;
  }
  .toggle_btn_group>a:first-child{
    border-right: 1px solid #ccc;
    box-sizing: border-box;
  }
  .router-link-active>span{
    color: #1989fa;
    border-bottom: 5px solid #1989fa;
    padding-bottom: 10px;
  }
</style>
